package cn.touna.jss.common.properties.config;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 系统配置，非三方商户信息配置，信息见 @link 投哪配置中心
 * User: xl
 * Date: 2018/8/31
 * Time: 15:00
 */
@Component
//@DisconfFile(targetDirPath = "disconf", filename = "sysConfig.properties")
public class SysConfigProperties {

    private String isValidate;

    private String checkStatus;

    /**
     * 置信度
     *
     * @return
     */
    //@DisconfFileItem(name = "authhistory.verifyScore", associateField = "verifyScore")
    public String getVerifyScore() {
        return verifyScore;
    }

    @Value("${jss.authhistory.verifyScore}")
    public void setVerifyScore(String verifyScore) {
        this.verifyScore = verifyScore;
    }

    private String verifyScore;


    //@DisconfFileItem(name = "jss.checkStatus", associateField = "isValidate")
    public String getCheckStatus() {
        return checkStatus;
    }

    @Value("${jss.checkStatus}")
    public void setCheckStatus(String checkStatus) {
        this.checkStatus = checkStatus;
    }

    //@DisconfFileItem(name = "jss.isValidate", associateField = "isValidate")
    public String getIsValidate() {
        return isValidate;
    }

    @Value("${jss.isValidate}")
    public void setIsValidate(String isValidate) {
        this.isValidate = isValidate;
    }



}
